home *** CD-ROM | disk | FTP | other *** search
- Path: nnrp.info.ucla.edu!usenet
- From: philhong@ucla.edu (Phil Hong)
- Newsgroups: comp.lang.c++
- Subject: Need help with strings
- Date: Sat, 24 Feb 1996 23:49:50 GMT
- Organization: j%nki~wÇRJ3M-26XPLZ8L-BFGD44CT-1EA6BC82
- Message-ID: <312fa36c.20800130@news.ucla.edu>
- NNTP-Posting-Host: s195_14.resnet.ucla.edu
- X-Newsreader: Forte Agent .99d/32.182
-
- Hi,
- I'm working on a school project right now and had a few questions
- about storing strings.
-
- What I am trying to do is the following:
-
- char* string;
- cin>>string;
- cout<<string;
-
- However, I figured out that that this won't work but I am not sure of
- the reason. Could someone explain what's going on here and also
- suggest a way that I can input and store a string of arbitrary length?
- Reply via email would be greatly appreciated. Thanks.
- Phil Hong
- philhong@ucla.edu
-